-- GENERATED SPELL FOR [Earthen Custodian] --


function spell0_7309(pUnit, Event) --@Earthen Guards Destroyed,n/a--
pUnit:FullCastSpellOnTarget(10666,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7309', 576, 1)
end

function Sorts_7309(pUnit, Event)
local choix_sorts_7309 = math.random(0, 0)
if choix_sorts_7309 == 0 then
pUnit:RegisterEvent('spell0_7309', 1, 1)
end
end

function mob7309_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7309', math.random(1500, 3000), 1)
end

function mob7309_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7309_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7309_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7309, 1, 'mob7309_Action')
RegisterUnitEvent(7309, 2, 'mob7309_Leave')
RegisterUnitEvent(7309, 3, 'mob7309_Kill')
RegisterUnitEvent(7309, 4, 'mob7309_Die')
